<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Sedodream.Web.Common.Contact.Contact>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
  View Contacts Classic
  <!-- 
        This is bascially the exact same file as ViewContactsNew.aspx with the exception of some text and links. 
        The files are duplicated for clairity, but its not a good practice to actually do this, better would be to share
        the same view and pick the correct text/links to display.
    -->
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
  <h2>View Contacts (Classic)</h2>
  <table>
    <tr>
      <th></th>
      <th>Id</th>
      <th>First Name</th>
      <th>Last Name</th>
      <th>Email</th>
      <th>Phone</th>
      <th>Gender</th>
    </tr>
    <% foreach (var item in Model)
       { %>
    <tr>
      <td>
        <%= Html.ActionLink("Edit", "EditClassic", new {  id=item.Id }) %>
        |
        <%= Html.ActionLink("Details", "DetailsClassic", new { id=item.Id })%>
      </td>
      <td><%= Html.Encode(item.Id.ToString()) %></td>
      <td><%= Html.Encode(item.FirstName) %></td>
      <td><%= Html.Encode(item.LastName) %></td>
      <td><%= Html.Encode(item.Email) %></td>
      <td><%= Html.Encode(item.Phone) %></td>
      <td><%= Html.Encode(item.Gender) %></td>
    </tr>
    <% } %>
  </table>
  <p>
    <%= Html.ActionLink("Create New Contact", "AddContactClassic") %>
  </p>
</asp:Content>
